package pers.hl.module_main

import pers.hl.lib_global.http.LibResponse
import pers.hl.lib_global.model.bean.BookTag
import pers.hl.lib_global.model.bean.Library
import pers.hl.lib_global.model.bean.User
import pers.hl.lib_global.mvvm.BaseLibModel

class CommonEditModel: BaseLibModel() {

    suspend fun updateLibrary(library: Library): LibResponse<*> {
        return libService.updateLibrary(library)
    }

    suspend fun updateTag(tag: BookTag): LibResponse<*> {
        return libService.updateTag(tag)
    }

    suspend fun addTag(tag: BookTag): LibResponse<*> {
        return libService.addTag(tag)
    }

    suspend fun updateUser(user: User): LibResponse<*> {
        return libService.updateUser(user)
    }

}
